package zj.com.util;

import android.graphics.Bitmap;

import com.nostra13.universalimageloader.core.DisplayImageOptions;

import zj.com.zj.R;

/**
 * Created by xi on 16/7/28.
 */
public class ImageUtil {

    public static DisplayImageOptions getOption(){
        DisplayImageOptions options;  options = new DisplayImageOptions.Builder()
                .showImageOnLoading(R.drawable.default_image)
                .showImageForEmptyUri(R.drawable.default_image)
                .showImageOnFail(R.drawable.default_image)
                .cacheInMemory(true)
                .cacheOnDisk(true)
                .considerExifParams(true)
                .bitmapConfig(Bitmap.Config.RGB_565)
                .build();

        return options;
    }
}
